﻿namespace ZR.Model.Souvenir.Dto
{
    public class CartDto
    {
        public int Id { get; set; }
        
        public int ProductId { get; set; }
        
        /// <summary>
        /// 分类ID
        /// </summary>
        public int CategoryId { get; set; }
        
        /// <summary>
        /// 纪念品名称
        /// </summary>
        public string Name { get; set; }
        
        /// <summary>
        /// 图片ID
        /// </summary>
        [JsonConverter(typeof(ValueToStringConverter))]
        public long ImageId { get; set; }
        
        /// <summary>
        /// 纪念品详情
        /// </summary>
        public string Detail { get; set; }
        
        /// <summary>
        /// 价格(单位元,保留两位小数)
        /// </summary>
        public decimal Price { get; set; }
        
        /// <summary>
        /// 库存数量
        /// </summary>
        public int Stock { get; set; }
        
        /// <summary>
        /// 商品状态(1:在售,2:下架,3:删除)
        /// </summary>
        public string Status { get; set; }
        
        public string ImageUrl { get; set; }
        
        public string CategoryName { get; set; }
        
        public int Quantity { get; set; }
        
        [JsonConverter(typeof(ValueToStringConverter))]
        public long UserId { get; set; }
    }

    public class CartQueryDto : PagerInfo
    {
        [JsonConverter(typeof(ValueToStringConverter))]
        public long UserId { get; set; }
    }
}